package com.example.hutool;

import cn.hutool.core.exceptions.ExceptionUtil;

/**
 * @author 江黎
 * @since 2022-11-29
 */
public class 异常工具类 {

    public static void main(String[] args) {
        try {
            int i = 1 / 0;
        } catch (Exception e) {
            String stacktraceToString = ExceptionUtil.stacktraceToString(e);
            System.out.println(stacktraceToString);
        }
    }
}
